from django.urls import path
from . import views
urlpatterns =[
    #定义首页的路由
    path('',views.myapp,name='myapp'),
    path('MyListV/',views.MyListV.as_view(), name='MyListV'),
    #定义detailview路由
    path('<pk>/<age>.html',views.MyDetailV.as_view(), name='MyDetailV'),
     #定义fromview路由
    path('MyFormV/',views.MyFormV.as_view(), name='MyFormV'),
    path('result',views.result,name='result'),
    #定义CreateView路由
    path('MyCreateV/',views.MyCreateV.as_view(), name='MyCreateV'),
    #定义updateview路由
    path('<age>.html', views.MyUpdateV.as_view(), name='MyUpdateV'),
    #定义Deleteview路由
    path('personinfo/<int:pk>/delete.html', views.MyDeleteV.as_view(), name='MyDeleteV'),
    #定义MonthArchiveView路由
    path('Month/<int:year>/<int:month>.html',views.MyMonthArchiveV.as_view(),name='MyMonthArchiveV'),
    
    path('week/<int:year>/<int:week>.html', views.MyWeekArchiveV.as_view(), name='MyWeekArchiveV'),
]